package com.company.eos.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.company.eos.common.util.PageUtils;
import com.company.eos.domain.AuditLeave;

import java.util.HashMap;

/**
 * 请假申请
 *
 * @author: Song, Wei
 * @date: 2022-03-26
 */
public interface AuditLeaveService extends IService<AuditLeave> {

    /**
     * 查询请假分页数据
     *
     * @param param
     * @return
     */
    PageUtils searchLeaveByPage(HashMap param);

    /**
     * 查询请假记录总数
     *
     * @param param
     * @return
     */
    boolean searchContradiction(HashMap param);

    /**
     * 新增请假记录
     *
     * @param auditLeave
     * @return
     */
    int insert(AuditLeave auditLeave);

    /**
     * 删除请假记录
     *
     * @param param
     * @return
     */
    int deleteLeaveById(HashMap param);

    /**
     * 查询请假单
     *
     * @param param
     * @return
     */
    HashMap searchLeaveById(HashMap param);

}
